package com.yongcheon.sms_manager.ui.phone_spam.actionTab;

import android.app.ActionBar;
import android.app.Fragment;
import android.app.FragmentTransaction;

import com.yongcheon.sms_manager.R;

/**
 * Created by yongcheon on 2014-11-18.
 */
public class ActionTabPhoneListener implements ActionBar.TabListener {

    private Fragment mFragment;

    public ActionTabPhoneListener(Fragment fragment) {
        mFragment = fragment;
    }

    public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {
        ft.add(R.id.tabparent, mFragment, "tag");
    }

    public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) {
        ft.remove(mFragment);
    }

    public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {
    }
}
